package map.terrain;

import game.models.Player;

import java.awt.Graphics;

import map.MapObject;
import map.PlayerEntity;
import map.RasterCell;
import map.SurfaceLevel;

public class DirectionRenderedTerrain extends BasicTerrain {

	public DirectionRenderedTerrain(String imageSource, SurfaceLevel lowSurface, SurfaceLevel level) {
		super(imageSource, level);

	}

	
	@Override
	public MapObject newInstance() {
		return new BasicTerrain(this.imageSource);
	}

	@Override
	public boolean enterable(Player actor) {
		return true;
	}

	@Override
	public SurfaceLevel getSurfaceLevel() {
		return surfaceLevel;
	}
	
	@Override
	public void paintComponent(Graphics arg0, RasterCell target) {
		arg0.drawImage(img, target.getCx()*target.RASTERSIZE, target.getCy()*target.RASTERSIZE, null);
	}
	
}
